package org.eclipse.baseball;

import static org.junit.Assert.*;

import java.io.FileNotFoundException;

import org.eclipse.football.League;
import org.eclipse.football.Team;
import org.junit.Test;

public class addTeam {

	@Test
	public void test() throws FileNotFoundException {
		// Create a league
		League league = new League();
		
		// Create a team 
		Team team = new Team("temp");
		
		// Get the current size of the league
		int old_size = league.getTeams().size();
		
		// Try to add team to the league
		league.addTeam(team);
		
		// Make sure the size of the league increased by 1
		if(league.getTeams().size() != old_size + 1){
			// If not fail
			fail("Added a team to a league and the number of teams did not go up.");
		}
	}

}
